//图片单击事件
$("#addDept").click(function() {
//	whiteBox.load("page/dept/deptPage.html");
	initDept();
});
$("#addEmp").click(function() {
//	whiteBox.load("page/employee/empPage.html");
	initEmp();
});
$("#addRecr").click(function() {
//	whiteBox.load("page/recruitPage/recruitPage.html");
	initRecr();
	
});
$("#addTrain").click(function() {
	initTrain();
});
$("#addReward").click(function() {
	initReward();
});
$("#addSalary").click(function() {
	initSalary();
});

//加载用户信息
//用户验证
$.ajax({
	type : "get",
	url : "/HMS/readUserCount",
	dataType : 'json',
	data:{},
	contentType : "application/json;charset=UTF-8",
	success : function(value) {
		if(value.msg == "OK"){
			$("#user").html(value.obj.realName);
		}else{
			$("#user").val("未来人");
		}
	},
	error : function(data) {
		alert('失败!');
	}
});

